package com.tk.exam.domain;

import java.util.Date;

public class TkStudentAnswer {
    private Integer id;

    private Integer examInfoId;

    private Integer questionId;

    private Integer studentId;

    private Date createTime;

    private Date updateTime;

    private Double score;

    private String answer;

    public TkStudentAnswer() {
    }

    public TkStudentAnswer(Integer examInfoId, Integer questionId, Integer studentId, String answer) {
        this.examInfoId = examInfoId;
        this.questionId = questionId;
        this.studentId = studentId;
        this.answer = answer;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getExamInfoId() {
        return examInfoId;
    }

    public void setExamInfoId(Integer examInfoId) {
        this.examInfoId = examInfoId;
    }

    public Integer getQuestionId() {
        return questionId;
    }

    public void setQuestionId(Integer questionId) {
        this.questionId = questionId;
    }

    public Integer getStudentId() {
        return studentId;
    }

    public void setStudentId(Integer studentId) {
        this.studentId = studentId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Double getScore() {
        return score;
    }

    public void setScore(Double score) {
        this.score = score;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer == null ? null : answer.trim();
    }
}